public class booklist {
    private book[] books=new book[10];
    private int usedsize=0;
    public booklist(){
        this.books[0] = new book("三国演义","罗贯中",10,"小说");
        this.books[1] = new book("西游记","吴承恩",59,"小说");
        this.books[2] = new book("红楼梦","曹雪芹",16,"小说");
        this.usedsize = 3;
    }

    public book[] getBooks() {
        return books;
    }


    public int getUsedsize() {
        return usedsize;
    }

    public void setUsedsize(int usedsize) {
        this.usedsize = usedsize;
    }
    public void setbook(int pos,book books){
        this.books[pos]=books;
    }

    public book getbook(int pos){
       return books[pos];
    }
}
